<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/fsm2.hpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#namespaces">命名空间</a> &#124;
<a href="#define-members">宏定义</a>  </div>
  <div class="headertitle"><div class="title">fsm2.hpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;map&gt;</code><br />
<code>#include &lt;atomic&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
<code>#include &quot;<a class="el" href="../../d0/d0e/misc_8hpp_source.html">misc.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
fsm2.hpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d8/da4/fsm2_8hpp__incl.png" border="0" usemap="#ainclude_2fsm2_8hpp" alt=""/></div>
<map name="ainclude_2fsm2_8hpp" id="ainclude_2fsm2_8hpp">
<area shape="rect" title=" " alt="" coords="270,5,391,32"/>
<area shape="rect" title=" " alt="" coords="44,304,113,331"/>
<area shape="poly" title=" " alt="" coords="315,34,259,82,210,138,164,196,97,292,93,289,160,193,205,134,255,78,312,30"/>
<area shape="rect" title=" " alt="" coords="592,229,645,256"/>
<area shape="poly" title=" " alt="" coords="350,30,414,78,470,129,527,179,585,219,582,223,524,183,466,133,410,82,347,35"/>
<area shape="rect" title=" " alt="" coords="269,80,315,107"/>
<area shape="poly" title=" " alt="" coords="326,34,308,68,303,65,321,31"/>
<area shape="rect" title=" " alt="" coords="339,80,399,107"/>
<area shape="poly" title=" " alt="" coords="340,31,358,65,353,68,335,34"/>
<area shape="rect" title=" " alt="" coords="405,379,483,405"/>
<area shape="poly" title=" " alt="" coords="270,24,190,33,146,42,104,56,67,74,37,98,16,129,11,147,9,167,9,244,10,292,17,310,34,329,59,344,97,356,194,374,299,383,390,387,390,392,299,389,193,379,95,361,57,349,30,333,13,313,5,293,4,244,4,167,6,146,12,127,33,95,64,70,102,51,145,37,189,28,270,19"/>
<area shape="rect" href="../../d0/d0e/misc_8hpp.html" title=" " alt="" coords="565,80,640,107"/>
<area shape="poly" title=" " alt="" coords="379,30,551,76,550,81,377,35"/>
<area shape="poly" title=" " alt="" coords="607,107,618,214,613,214,601,107"/>
<area shape="poly" title=" " alt="" coords="619,105,640,126,660,153,685,202,702,245,705,266,702,287,694,309,679,332,667,343,650,352,603,368,498,387,497,382,602,362,648,347,664,339,675,329,689,307,697,286,699,266,697,246,680,204,655,156,636,130,615,109"/>
<area shape="rect" title=" " alt="" coords="574,304,645,331"/>
<area shape="poly" title=" " alt="" coords="612,106,637,158,651,193,660,229,662,243,660,257,650,277,636,294,632,291,645,274,655,255,657,243,655,230,645,194,633,160,607,108"/>
<area shape="rect" title=" " alt="" coords="537,155,594,181"/>
<area shape="poly" title=" " alt="" coords="598,108,581,142,576,140,594,106"/>
<area shape="rect" href="../../d8/d68/fs_8hpp.html" title=" " alt="" coords="403,155,461,181"/>
<area shape="poly" title=" " alt="" coords="574,110,476,151,474,146,572,105"/>
<area shape="poly" title=" " alt="" coords="462,178,578,223,576,228,460,183"/>
<area shape="poly" title=" " alt="" coords="455,180,659,302,665,318,659,332,633,351,592,365,499,386,497,380,591,360,631,346,655,329,659,318,655,306,452,184"/>
<area shape="rect" title=" " alt="" coords="211,229,290,256"/>
<area shape="poly" title=" " alt="" coords="404,183,297,226,295,221,402,178"/>
<area shape="rect" title=" " alt="" coords="314,229,379,256"/>
<area shape="poly" title=" " alt="" coords="419,184,374,221,371,217,415,180"/>
<area shape="rect" href="../../de/dfd/tree_8hpp.html" title=" " alt="" coords="403,229,471,256"/>
<area shape="poly" title=" " alt="" coords="435,182,438,213,433,214,430,182"/>
<area shape="poly" title=" " alt="" coords="403,256,391,259,261,282,128,306,127,301,260,277,390,253,402,251"/>
<area shape="poly" title=" " alt="" coords="440,256,445,363,440,363,435,257"/>
<area shape="poly" title=" " alt="" coords="468,254,566,295,564,300,466,259"/>
<area shape="rect" title=" " alt="" coords="482,304,550,331"/>
<area shape="poly" title=" " alt="" coords="453,255,493,291,489,295,449,259"/>
<area shape="rect" title=" " alt="" coords="137,304,175,331"/>
<area shape="poly" title=" " alt="" coords="403,256,391,259,292,280,190,306,189,301,290,275,390,253,402,250"/>
<area shape="rect" title=" " alt="" coords="199,304,281,331"/>
<area shape="poly" title=" " alt="" coords="404,259,290,301,288,296,402,254"/>
<area shape="rect" href="../../d6/de9/typetraits_8hpp.html" title=" " alt="" coords="306,304,406,331"/>
<area shape="poly" title=" " alt="" coords="425,259,383,296,379,292,421,255"/>
<area shape="poly" title=" " alt="" coords="373,329,419,367,415,371,370,333"/>
</map>
</div>
</div>
<p><a href="../../d4/d64/fsm2_8hpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dc3/structwheels_1_1base____.html">wheels::base__</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">方便继承或者特化后能够使用一个指针，定义一个基础空类  <a href="../../d3/dc3/structwheels_1_1base____.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d5b/classwheels_1_1fsm2.html">wheels::fsm2&lt; statType, dataType, realT &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">状态机定义， 这个状态机不支持子状态模式  <a href="../../d4/d5b/classwheels_1_1fsm2.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/dfa/structwheels_1_1fsm2_1_1st_data_item.html">wheels::fsm2&lt; statType, dataType, realT &gt;::stDataItem</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd4/structwheels_1_1fsm2_1_1state.html">wheels::fsm2&lt; statType, dataType, realT &gt;::state</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">定义状态  <a href="../../dc/dd4/structwheels_1_1fsm2_1_1state.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d2c/structwheels_1_1fsm2_1_1trans_key_type.html">wheels::fsm2&lt; statType, dataType, realT &gt;::transKeyType</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/dd7/structwheels_1_1fsm2_1_1trans.html">wheels::fsm2&lt; statType, dataType, realT &gt;::trans</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
命名空间</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></td></tr>
<tr class="memdesc:df/d8d/namespacewheels"><td class="mdescLeft">&#160;</td><td class="mdescRight">堆栈信息读取和保存记录 <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:aacf69ff8de97043ae245f3bfbe835736" id="r_aacf69ff8de97043ae245f3bfbe835736"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aacf69ff8de97043ae245f3bfbe835736">onFsm2ENT</a>(fun)&#160;&#160;&#160;[&amp;]( const std::string&amp; s, const fsm2::stDataItem&amp; data )-&gt;bool{ return fun( s , data ); }</td></tr>
<tr class="separator:aacf69ff8de97043ae245f3bfbe835736"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51fac69d8ef52c255cd0584cd4b7f31b" id="r_a51fac69d8ef52c255cd0584cd4b7f31b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a51fac69d8ef52c255cd0584cd4b7f31b">onFsm2RAISE</a>(fun)&#160;&#160;&#160;[&amp;]( const std::string&amp; <a class="el" href="../../dc/d2f/classfs.html">fs</a> , const std::string&amp; ts , const fsm2::stDataItem&amp; data){ fun( <a class="el" href="../../dc/d2f/classfs.html">fs</a> , ts , data ); }</td></tr>
<tr class="separator:a51fac69d8ef52c255cd0584cd4b7f31b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae224825c388d3ced493c197c871922fd" id="r_ae224825c388d3ced493c197c871922fd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae224825c388d3ced493c197c871922fd">onFsm2LEAVE</a>(fun)&#160;&#160;&#160;[&amp;]( const std::string&amp; s, const fsm2::stDataItem&amp; data )-&gt;std::string{ return fun( s , data ); }</td></tr>
<tr class="separator:ae224825c388d3ced493c197c871922fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="aacf69ff8de97043ae245f3bfbe835736" name="aacf69ff8de97043ae245f3bfbe835736"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacf69ff8de97043ae245f3bfbe835736">&#9670;&#160;</a></span>onFsm2ENT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define onFsm2ENT</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td>&#160;&#160;&#160;[&amp;]( const std::string&amp; s, const fsm2::stDataItem&amp; data )-&gt;bool{ return fun( s , data ); }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d64/fsm2_8hpp_source.html">fsm2.hpp</a> 第 <a class="el" href="../../d4/d64/fsm2_8hpp_source.html#l00804">804</a> 行定义.</p>

</div>
</div>
<a id="ae224825c388d3ced493c197c871922fd" name="ae224825c388d3ced493c197c871922fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae224825c388d3ced493c197c871922fd">&#9670;&#160;</a></span>onFsm2LEAVE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define onFsm2LEAVE</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td>&#160;&#160;&#160;[&amp;]( const std::string&amp; s, const fsm2::stDataItem&amp; data )-&gt;std::string{ return fun( s , data ); }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d64/fsm2_8hpp_source.html">fsm2.hpp</a> 第 <a class="el" href="../../d4/d64/fsm2_8hpp_source.html#l00806">806</a> 行定义.</p>

</div>
</div>
<a id="a51fac69d8ef52c255cd0584cd4b7f31b" name="a51fac69d8ef52c255cd0584cd4b7f31b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51fac69d8ef52c255cd0584cd4b7f31b">&#9670;&#160;</a></span>onFsm2RAISE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define onFsm2RAISE</td>
          <td>(</td>
          <td class="paramtype"></td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td>&#160;&#160;&#160;[&amp;]( const std::string&amp; <a class="el" href="../../dc/d2f/classfs.html">fs</a> , const std::string&amp; ts , const fsm2::stDataItem&amp; data){ fun( <a class="el" href="../../dc/d2f/classfs.html">fs</a> , ts , data ); }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d4/d64/fsm2_8hpp_source.html">fsm2.hpp</a> 第 <a class="el" href="../../d4/d64/fsm2_8hpp_source.html#l00805">805</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
